#ifndef TERRAIN_HPP
#define TERRAIN_HPP
#include "../Tools/GLHeaders.hpp"

class Terrain{
  public:
    Terrain(void);
    ~Terrain(void);
    void RenderToTexture(
        GLfloat r=1.0f,
        GLfloat g=1.0f,
        GLfloat b=1.0f,
        GLfloat a=1.0f);
    void Draw(
        GLfloat r=1.0f,
        GLfloat g=1.0f,
        GLfloat b=1.0f,
        GLfloat a=1.0f);
    GLuint txt_tiles[16];
  private:
    GLsizei txt_width;
    GLsizei txt_height;
    GLuint txt_id;
    GLuint rbo_id;
    GLuint fbo_id;
    GLuint *terrain_buffers;

    void InitTexture(void);
    void InitTiles(void);
    void DrawTiles(void);
};

#endif
